<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>云API</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../css/style.css"/>
    <style>
        .empty{ text-align: center; padding: 120px 0; }
        .qrcode{
            width: 200px;
            height: 200px;
            margin: 30px auto;
        }
        .qrcode canvas{
            width: 200px;
            height: 200px;
        }
        .txt{
            margin-top: 20px;
            text-align: center;
            color: #6ab494
        }
    </style>
</head>
<body>

    <div class="qrcode"></div>
    <div class="txt">10秒刷新一次</div>
    <script type="text/javascript" src="../script/api.js"></script>
    <script type="text/javascript" src="../script/jquery-2.2.1.min.js"></script>
    <script type="text/javascript" src="../script/jquery.qrcode.min.js"></script>
    <script type="text/javascript">
        // apiready = function () {
            var j = 1;
            $('.qrcode').qrcode("nihao")
            var timeer = window.setInterval(function(){ 
                var i = "nihao" ;
                j+=1;
                i=i+j;
                $('.qrcode').qrcode(i);
                $('.qrcode').children().eq(0).remove()
            },1000*10)

// } 

</script>

</body>
</html>